/**
 * 
 */
package com.deitel.advjhtp1.gui.webbrowser;

import java.awt.BorderLayout;
import java.awt.Container;

import javax.swing.JFrame;
import javax.swing.JScrollPane;

/**
 * @author Aslanbek
 *
 */
public class WebBrowser extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2661168174841059215L;
	private WebToolBar toolBar;
	private WebBrowserPane browserPane;
	
	public WebBrowser()
	{
		super("AsChrome Web Browser");
		
		browserPane = new WebBrowserPane();
		toolBar = new WebToolBar(browserPane);
		
		Container contentPane = getContentPane();
		contentPane.add(toolBar, BorderLayout.NORTH);
		contentPane.add(new JScrollPane(browserPane), BorderLayout.CENTER);
	}
	
	public static void main(String args[]) 
	{
		WebBrowser browser = new WebBrowser();
		browser.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		browser.setSize(640, 480);
		browser.setVisible(true);
	}
}
